package com.woniu.defecttracking.service;

import com.woniu.defecttracking.dto.FindSavarityDto;
import com.woniu.defecttracking.entity.Savarity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.defecttracking.exception.DefectTrackingException;
import com.woniu.defecttracking.param.FindSavarityParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tiangle
 * @since 2021-12-31
 */
public interface SavarityService extends IService<Savarity> {

    FindSavarityDto findSavarity();

    boolean addSavarity(FindSavarityDto addSavarityDto);

    boolean updateSavarity(FindSavarityDto updateSavarityDto);

    boolean deleteSavarity(List<Integer> ids) throws DefectTrackingException;

    boolean updateStatusUp(Integer id);

    boolean updateStatusDown(Integer id);

    FindSavarityDto findOpenSavarity();
}
